package com.atguigu_b_trainstation_sync;

public class Demo {
    public static void main(String[] args) {
        //创建线程的任务对象
        SellTicket st = new SellTicket();
        //创建线程对象,把任务对象传递给线程对象
        Thread t1 = new Thread(st, "窗口一");
        Thread t2 = new Thread(st, "窗口二");
        Thread t3 = new Thread(st, "窗口三");

        //启动线程
        t1.start();
        t2.start();
        t3.start();
    }
}
